package com.nlscan.techhub.toolbox.feature.system.deviceinfo.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.nlscan.ncomgateway.R
import com.nlscan.techhub.toolbox.feature.system.deviceinfo.model.SystemPropertyItem

class SystemPropertyAdapter(data: MutableList<SystemPropertyItem>? = null) :
    BaseQuickAdapter<SystemPropertyItem, BaseViewHolder>(
        R.layout.sys_item_system_property, data
    ) {

    override fun convert(holder: BaseViewHolder, item: SystemPropertyItem) {
        holder.setText(R.id.tv_property_name, item.name)
        holder.setText(R.id.tv_property_value, item.value)
    }
}